import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:path_provider/path_provider.dart';

class Demo2 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Page1(),
    );
  }
}

class Page1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final controller = TextEditingController();

    return Scaffold(
      appBar: AppBar(title: Text('测试')),
      body: Column(children: [
        TextField(
          keyboardType: TextInputType.multiline,
          controller: controller,
          minLines: 5,
          maxLines: 10,
        ),
        FlatButton(
          child: Text('保存'),
          color: Colors.blue,
          onPressed: () async {
            var client = HttpClient();
          },
        ),
      ]),
    );
  }
}
